package com.hanxu.springboot05mybatis.mapper;

import com.hanxu.springboot05mybatis.pojo.Student;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 代表是一个dao 类
 */

@Mapper //表示这个mybatis的mapper类
@Repository
public interface StudentMapper {

    List<Student> studentList();

    Student studentGetById(int id);

    int addStudent(Student student);

    int updateStudent(int id);

    int deleteStudent(int id);



}
